/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lu.med.praxiswahl.wahlumed.service.beans.serviceinterface;

import lu.med.praxiswahl.wahlumed.model.beans.AccountingTBL;

/**
 * 
 * @author Patrick kendzo Email: pkendzo@msn.com
 */
public interface AccountingServiceInt {

	public static final int RET_OPERATION_DONE_PROPERLY = 0;
	public static final int RET_OPERATION_FAILED = 1;

	public int createAccount(String login, String defaultPwd,
			boolean Role_CustomerTAB, boolean Role_BillsTAB,
			boolean Role_OPBillsTAB, boolean Role_RemindersTAB,
			boolean Role_ZytologyTAB, boolean Role_OrdonanceTAB,
			boolean Role_DoctorLetterTAB, boolean Role_CalendarTAB,
			boolean Role_GravTestTAB, boolean Role_LaborbookTAB,
			boolean Role_InternAnaTAB, boolean Role_DeliveriesTAB,
			boolean Admin, boolean Role_tarife, boolean Role_DoctorsDB,
			boolean Role_ZytoZettelTAB);

	public String checkLogin(AccountingTBL user);

	public AccountingTBL[] showsAvailableUsers();

	public int changePassword(String login, String newPwd);

	public int deleteAccount(String login);

	public int updateAccount(AccountingTBL account);

	public AccountingTBL getAccountByLogin(AccountingTBL account);

	/*
	 * Log in the given user
	 */
	public void logInUser(AccountingTBL userAccount);

	/*
	 * Log out the given user
	 */
	public void logOutUser(AccountingTBL userAccount);

}
